/**
 * 
 */
package com.gametheoryserver.gui.sum.action;

import com.gametheoryserver.gui.sum.PlaySumGame;
import com.gametheoryserver.gui.sum.state.PlaySumGameStateHolder;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.data.Property.ValueChangeListener;

/**
 * @author Tomas Barak
 * 
 */
public class GameChangeAction implements ValueChangeListener {

	private PlaySumGame playSumGame;

	/**
	 * @param playSum
	 */
	public GameChangeAction(PlaySumGame playSumGame) {
		this.playSumGame = playSumGame;
	}

	@Override
	public void valueChange(ValueChangeEvent event) {
		PlaySumGameStateHolder.setState(
				PlaySumGameStateHolder.GAME_CHANGE_STATE, playSumGame);
	}

}
